﻿@{
    Layout = "~/Views/Shared/_MainLayout.cshtml";
}
<link href="/css/rechOn/rechargeDetail.css" rel="stylesheet"/>
<div class="contentTop">
    <img src="/images/business/dot.png" />
    <span><a href="#" target="">充值中心</a></span>
    <span>>></span>
    <span><a href="#" target="">充值明细查询</a></span>
    <img src="/images/business/lineH.png">
</div>
<div class="detail">
    <table border="0" cellpadding=0 cellspacing=0 >
        <tbody>
            <tr bgcolor="#e9e9e9">
        	    <th>下单时间</th>
			    <th>订单号</th>
			    <th>充值区服</th>
			    <th>充值金额</th>
			    <th>充值状态</th>
            </tr>
                    @{
                        IDictionary<string, Framework.Common.Entry.KeyValueEntry<string, double>> source = (IDictionary<string, Framework.Common.Entry.KeyValueEntry<string, double>>)ViewData["source"];
                        IDictionary<int, object> status = (IDictionary<int, object>)ViewData["status"];
                        var list = (IOrderedEnumerable<Billing.IService.Entry.RechargeOrderEntry>)ViewData["list"];
                        if (list!=null){
                            foreach (var entry in list)
                            {
                                <tr>
                                    <td>@(DateTime.Parse(entry.indate).ToString("yyyy-MM-dd HH:mm:ss"))</td>
                                    <td>@entry.code</td>
                                    <td>@(source.ContainsKey(entry.sourceCode)?source[entry.sourceCode].key:string.Empty)</td>
                                    <td>@entry.amount</td>
                                    <td>@(status.ContainsKey(entry.status)?status[entry.status]:string.Empty)</td>
                                </tr>
                            }
                        }
                    }
        </tbody>
    </table>
</div>
